<h1 style="color:#fff;padding-bottom:30px"><?php echo $album->album_title?></h1>
<img style="display:block;margin:0 auto;max-width:240px" src="/libraries/bootstrap/tamchau/images/tiec-cuoi.png">
<ul class="setmenu">
<?php 
foreach($album_images as $img){
	$thumb = $img->image_source;
	$thumb = preg_replace('/\/data/','',$thumb,1);
	if(file_exists(APPPATH. "../data/thumbs/$thumb") && is_file(APPPATH. "../data/thumbs/$thumb")){
		$img->image_thumb = "/data/thumbs$thumb";
	}else{
		$img->image_thumb = $img->image_source;
	}
?>
	<li>
		<?php echo quotes_to_entities($img->image_title) ?>
		<a class="swipebox" 
			title="<?php echo quotes_to_entities($img->image_title) ?>" 
			href="<?php echo quotes_to_entities($img->image_source) ?>">
			<div class="setmenu-icon" style="background-image:url('<?php echo quotes_to_entities($img->image_thumb) ?>')"></div>
		</a>	
	</li>
<?php 
} 
?>
</ul>
